package com.hj.mybatis.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @author hj
 * @Date 2023/4/27
 * @Description: 分页数据
 */
@Data
@Schema(description = "分页数据")
@NoArgsConstructor
@AllArgsConstructor
public class PageResult<T> implements Serializable {


    @Schema(description = "总页数")
    private long totalPage;

    @Schema(description = "总记录数")
    private long total;

    @Schema(description = "列表数据")
    private List<T> list;


}
